# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-libvshadow-python
_pkgname=libvshadow
pkgver=20240504
pkgrel=3
pkgdesc='Library and tools to access the Volume Shadow Snapshot (VSS) format.'
arch=('x86_64' 'aarch64')
url='https://pypi.org/project/libvshadow-python/#files'
license=('LGPL3')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-python-$pkgver.tar.gz")
sha512sums=('82024b42884098b148f81a752435b3974cbb63283684541ac04077037e5ae087b22e21ccd8052999807df0d1d782f5be6f305725128674bbf5fdf1e7a2819632')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

